package com.itqn.service;

import com.itqn.pojo.Employee;
import com.itqn.pojo.PageBean;

/**
 * 员工表业务逻辑层接口
 */
public interface EmployeeService {
    //登录的方法
    Employee login(Employee employee) throws Exception;

    //修改密码
    int UpPassword(Employee employee, String oldPassword) throws Exception;

    //添加员工的方法
    int AddEmployee(Employee employee) throws Exception;

    //单查(根据id查询)
    Employee findEmployeeById(int id) throws Exception;

    //修改员工的方法
    int updateEmployee(Employee employee) throws Exception;

    //禁用方法
    Integer disable(Employee employee) throws Exception;
    PageBean<Employee> query(String name, Integer pageSize, Integer page) throws Exception;

    void updatestatic(Employee employee) throws Exception;
}
